892e770a5d2a2429d5966ccbeca390e40ad0c6e5,languages/notation/source_gen/jetbrains/mps/core/notation/actions/SNotationActionUtil.java,SNotationActionUtil,getLeftOutermostNotation,#SNode#,25
Before Change
public static SNode getLeftOutermostNotation(SNode part) {
SNode parent = SNodeOperations.getParent(part);
if (SNodeOperations.isInstanceOf(parent, "jetbrains.mps.core.notation.structure.SNotationWrapper") && !(SNotationWrapper_Behavior.call_hasPrefix_8379004527113948625(SNodeOperations.cast(parent, "jetbrains.mps.core.notation.structure.SNotationWrapper")))) {
return getLeftOutermostNotation(SNodeOperations.cast(parent, "jetbrains.mps.core.notation.structure.SNotationPart"));
}
return part;
After Change
public static SNode getLeftOutermostNotation(SNode part) {
SNode parent = SNodeOperations.getParent(part);
if (SNodeOperations.isInstanceOf(parent, "jetbrains.mps.core.notation.structure.SNotationQuantifier")) {
return getLeftOutermostNotation(SNodeOperations.cast(parent, "jetbrains.mps.core.notation.structure.SNotationPart"));
}
if (SNodeOperations.isInstanceOf(parent, "jetbrains.mps.core.notation.structure.SNotationUnorderedGroup") && ListSequence.fromList(SLinkOperations.getTargets(SNodeOperations.cast(parent, "jetbrains.mps.core.notation.structure.SNotationUnorderedGroup"), "parts", true)).first() == part) {
return getLeftOutermostNotation(SNodeOperations.cast(parent, "jetbrains.mps.core.notation.structure.SNotationPart"));
}
return part;